package timu;

public class shuchu {
    public static void main(String[] args) {
        System.out.println("满足1+2+3+...+n<8888的最大正整数n：");
        int sum=0;
        for(int i=1;i>=0;) {
            if(sum>=8888) {
                System.out.println(i-2);
                break;
            }else  {
                sum = sum + i;
                i++;
            };
        }
    }
}
